import request from '@/utils/request'

/* 根据id查询订单详情 */
export const getorderdetail = (id) => {
  return request.get(`/admin/orderDetail/list/${id}`)
}

// 修改订单状态
export const updateStatus = (id, status) => {
  return request.post(`/admin/order/updateStatus/${id}`, status)
}

// 删除订单
export const removeOrder = (id) => {
  return request.get(`/admin/order/delete/${id}`)
}

// 批量查询订单详情
export const allorderdetail = (ids) => {
  return request.post('/admin/orderDetail/all', ids)
}
